package src.World;

import src.Main;

public class ShopList
{
    public int shopItemsStandard = 0;
    public int shopSModifier = 0;
    public int shopBModifier = 0;
    public String shopName = "";
    private int[] shopItems = new int[101];
    private int[] shopItemsN = new int[101];
    private int[] shopItemsDelay = new int[101];
    private int[] shopItemsSN = new int[101];

    public ShopList(String name, int sm, int bm, int sts, int[] si, int[] siN, int[] siSN)
    {
        shopName = name;
        shopSModifier = sm;
        shopBModifier = bm;
        shopItemsStandard = sts;
        shopItems = si;
        shopItemsN = siN;
        shopItemsSN = siSN;
    }

    public int[] getShopItems()
    {
        return shopItems;
    }

    public int[] getShopItemsDelay()
    {
        return shopItemsDelay;
    }

    public int[] getShopItemsN()
    {
        return shopItemsN;
    }

    public int[] getShopItemsSN()
    {
        return shopItemsSN;
    }

    public void setShopItemsN(int i, int amt)
    {
        shopItemsN[i] += amt;
    }

    public void resetShopDelay(int i)
    {
        shopItemsDelay[i] = 0;
    }

    public void increaseShopDelay(int i)
    {
        shopItemsDelay[i]++;
    }

    public void removeShopItem(int i)
    {
        shopItems[i] = 0;
        shopItemsN[i] = 0;
        shopItemsDelay[i] = 0;
    }

    public void createShopItem(int i, int id, int amt)
    {
        shopItems[i] = id;
        shopItemsN[i] = amt;
        shopItemsDelay[i] = 0;
    }

    public void emptyItemAmt(int i)
    {
        shopItems[i] = 0;
    }
}